<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"> 
	<title>Bootstrap 实例 - 简单的轮播（Carousel）插件</title>
	<link rel="stylesheet" href="//cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/index.css">
    <script src="//cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
	<script src="//cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
	<script src="../lb/axios.min.js"></script>
	<script src="../config/config.js"></script>
</head>
<body>
    <header>

   
<div id="myCarousel" class="carousel slide" data-interval="1500" data-ride="carousel">
	<!-- 轮播（Carousel）指标 -->
	<ol class="carousel-indicators">
		<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
		<li data-target="#myCarousel" data-slide-to="1"></li>
        <li data-target="#myCarousel" data-slide-to="2"></li>
        <li data-target="#myCarousel" data-slide-to="3"></li>
        <li data-target="#myCarousel" data-slide-to="4"></li>
	</ol>   
	<!-- 轮播（Carousel）项目 -->
	<div class="carousel-inner">
		<div class="item active">
			<img src="../img/1.webp" alt="First slide">
		</div>
		<div class="item">
			<img src="../img/2.webp" alt="Second slide">
		</div>
		<div class="item">
			<img src="../img/3.webp" alt="Third slide">
        </div>
        <div class="item">
			<img src="../img/4.webp" alt="Third slide">
        </div>
        <div class="item">
			<img src="../img/5.webp" alt="Third slide">
		</div>
	</div>
	<!-- 轮播（Carousel）导航 -->
	<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
		<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
		<span class="sr-only">Previous</span>
	</a>
	<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
		<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
		<span class="sr-only">Next</span>
	</a>
</div> 
</header>
<article>
<div class="container">
	<div class="row clearfix">
		
		
		
		
		<!-- <div class="col-md-4 column">
			<img alt="140x140" src="../img/11.jpg" />
			<a class="text-info">
				h3. 这是一套可视化布局系统.
            </a>
            <p>价格￥20</p>
		</div> -->
		<!-- <div class="col-md-4 column">
			<img alt="140x140" src="../img/11.jpg" class="img-rounded" />
			<a class="text-left text-info">
				h3. 这是一套可视化布局系统.
            </a>
            <p>价格￥20</p>
        </div>
        <div class="col-md-4 column">
			<img alt="140x140" src="../img/11.jpg" class="img-rounded" />
			<a class="text-left text-info">
				h3. 这是一套可视化布局系统.
            </a>
            <p>价格￥20</p>
        </div>
        <div class="col-md-4 column">
			<img alt="140x140" src="../img/11.jpg" class="img-rounded" />
			<a class="text-left text-info">
				h3. 这是一套可视化布局系统.
            </a>
            <p>价格￥20</p>
        </div>
        <div class="col-md-4 column">
			<img alt="140x140" src="../img/11.jpg" class="img-rounded" />
			<a class="text-left text-info">
				h3. 这是一套可视化布局系统.
            </a>
            <p>价格￥20</p>
        </div>
        <div class="col-md-4 column">
			<img alt="140x140" src="../img/11.jpg" class="img-rounded" />
			<a class="text-left text-info">
				h3. 这是一套可视化布局系统.
            </a>
			<p>价格￥20</p>
			
		</div> -->
	</div>
</div>
</article>
<script>
   	let uid = localStorage.getItem("token");
	let username = localStorage.getItem("username");
	
		
	axios.get(proListApi,{
		params:{
			uid
		}
	}).then(res=>{
		let html='';
		res.data.data.forEach(p => {
			html+=`
		<div class="col-md-4 column">
			<a href="item.html?pid=${p.pid}">
			<img alt="140x140" src="${p.pimg}" class="img-rounded" />
			<a class="text-left text-info">
				${p.pname}
			</a>
			</a>
			<p>价格￥${p.pprice}</p>
			
		</div>
		
		`
		})
		let _row=document.querySelector(".row")
		_row.innerHTML=html
	})

</script>
</body>
</html>